package com.pxmeta.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("kt_user_shop")
@Data
@ApiModel(value = "用户商城对象", description = "")
public class UserShop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "是否正在使用")
    private Boolean isUse;

    @ApiModelProperty(value = "商品id")
    private Long shopId;

    @ApiModelProperty(value = "商品类型")
    private Integer shopType;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
